import React from 'react'


interface Cprops {
  valueState: any
  _valueState: any
}
function ChildrenOne(props: Cprops) {
  const { valueState, _valueState } = props
  console.log(valueState, 'valueState');

  return (
    <div>
      <div className="">valueState的值为{valueState}</div>
     
      
      <label  onClick={() => _valueState(1)}>
      <input type='checkbox'
        name=""  checked={valueState === 1 && true} />横板
      </label>
      
      <label onClick={() => _valueState(2)}>
      <input type='checkbox'
        // onChange={() => _valueState(2)}
        name=""  checked={valueState === 2 && true} />竖版
      </label>

    </div>
  )
}

export default ChildrenOne